<%@page import="com.itwill.ecom.receiver.ReceiverBeans"%>
<%@page import="com.itwill.ecom.receiver.ReceiverServiceImpl"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
	WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
	ReceiverServiceImpl receiverService=(ReceiverServiceImpl)webContext.getBean("receiverService");
	
	ReceiverBeans temp1 = new ReceiverBeans(0, 1, "TestName1", "TestEmail1", "111-1111-1111", "111-1111-1111", "테스트주소1", "테스트주소2", null, "테스트메모1");
	ReceiverBeans temp2 = new ReceiverBeans(0, 2, "TestName2", "TestEmail2", "222-2222-2222", "222-2222-2222", "테스트주소3", "테스트주소4", null, "테스트메모2");
	ReceiverBeans temp3 = new ReceiverBeans(0, 3, "TestName3", "TestEmail3", "333-3333-3333", "333-3333-3333", "테스트주소5", "테스트주소6", null, "테스트메모3");
	ReceiverBeans temp4 = new ReceiverBeans(0, 4, "TestName1", "TestEmail1", "111-1111-1111", "111-1111-1111", "테스트주소1", "테스트주소2", null, "");
	ReceiverBeans temp5 = new ReceiverBeans(0, 5, "TestName1", "TestEmail1", "111-1111-1111", "111-1111-1111", "테스트주소1", "테스트주소2", null, "");
	
	receiverService.createReceiver(temp1);
	receiverService.createReceiver(temp2);
	receiverService.createReceiver(temp3);
	receiverService.createReceiver(temp4);
	receiverService.createReceiver(temp5);
%>